<?php
/**
 * Created by PhpStorm.
 * User: coolinmind
 * Date: 28/11/2018
 * Time: 11:22
 */

namespace App\Modules\Mobile;

use App\Modules\AdapterApi;
use App\Services\Mobile\AuthIndex;

class Auth extends AdapterApi
{
    public function login()
    {
        $data = $this->postData;
        return AuthIndex::Auth()->login($data);
    }

    public function register()
    {
        $data = $this->postData;
        return AuthIndex::Auth()->register($data);
    }

    public function checkIdentity()
    {
        $data = $this->postData;
        return AuthIndex::Auth()->checkIdentity($data);
    }

    public function updateInfo()
    {
        $data = $this->postData;
        return AuthIndex::Auth()->updateInfo($data);
    }

    public function checkPhone()
    {
        $data = $this->postData;
        return AuthIndex::Auth()->checkPhone($data);
    }
}